<?php
if (isset($this->tabs)){
	if ($this->tabs!=null){
		$i=0;
		$tabPage='<body id="main_body" >
		            <div class="tabs clearfix">
		              <center>
                      <div class="left_tabs">
                      <ul class="toggle_tabs" id="toggle_tabs_unused">';
		foreach ($this->tabs as $item){
			$i++;
			$tabPage.='<li';
			if ($i==1){
				$tabPage.=' class="first "';
			} elseif ($i==count($this->tabs)){
				$tabPage.=' class="last "';
			}
			$tabPage.='><a ';
			if ((isset($_GET['d']) && $item['menu']==$_GET['d']) || (!isset($_GET['d']) && $i==1)){
				$tabPage.='class="selected"';
			}
			$tabPage.=' href="'.$item['link'].'">'.$item['menu'].'</a></li>';
		}
		$tabPage.='</ul></div></center></div>';
		echo $tabPage;
	}
}?>
